import request from "@/utils/request";

// 创建置顶
export const topInfo = (params) => {
  return request("POST", "/jkkj/topInfo", params);
};

// 查询我的置顶信息
export const getTopConfig = (params) => {
  return request("GET", "/jkkj/topConfig/querylist", params);
};

// 查询我的置顶信息
export const getTopInfoList = (id) => {
  return request("GET", `/jkkj/topInfo/queryInfo/${id}`);
};

// 获取模块对应置顶配置信息
export const getTopConfigQuery = (moduleType) => {
  return request("GET", `/jkkj/topConfig/query/${moduleType}`);
};

// 获取国家
export const countryQueryList = (moduleType) => {
  return request("GET", `/jkkj/country/queryList`);
};

// 获取国家
export const exchange = (id) => {
  return request("GET", `/app/trade/exchange/${id}`);
};

// 充值订单
export const createExchangeOrder = (data) => {
  return request("GET", `/app/trade/exchangeOrder/createExchangeOrder`, data);
};
